desc "Pull down everything from the remote server"
task :pull do
  set :confirm_pull_all, ask("confirmation to pull everything", "YES/no")
  
  unless "YES" == fetch(:confirm_pull_all)
    run_locally do
      error "Nothing will be pulled from the remote server"
    end
    
    next
  end
  
  set :confirm_pull_database, true
  set :confirm_pull_htaccess, true
  set :confirm_pull_uploads, true
  
  invoke 'htaccess:pull'
  invoke 'uploads:pull'
  invoke 'db:pull'
end
